package com.example.juc;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public enum SingleTestEnum {
    Osb;

    public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
        SingleTestEnum osb = SingleTestEnum.Osb;
        Constructor<SingleTestEnum> declaredConstructor = SingleTestEnum.class.getDeclaredConstructor(String.class, int.class);
        declaredConstructor.setAccessible(true);
        Object o = declaredConstructor.newInstance(null);
        Object o1 = declaredConstructor.newInstance(null);
        System.out.println(osb);
        System.out.println(o);
        System.out.println(o1);
    }
}
